package com.xianyun.site.iblog.convertor;

import com.xianyun.site.iblog.domain.user.model.SocialUser;
import com.xianyun.site.iblog.dto.user.data.SocialUserDTO;
import org.springframework.beans.BeanUtils;

/**
 * @author mac_zyj
 */
public class SocialUserConvertor {

    public static SocialUser toEntity(SocialUserDTO socialUserDTO){
        SocialUser socialUser = new SocialUser();
        BeanUtils.copyProperties(socialUserDTO, socialUser);
        return socialUser;
    }
}
